RE: java https Posted by ~Nita Desgeroburings on 22.May.03 at 08:16 PM using a Web browser Category: Applications Development Release: 6.0 Platform: All Platforms
Hi, I am glad to see in this thread, that I should be able to use https in java if I add
the extensions and make the policy change.
However, I am having a few problems getting it to work.
My code:
System.getProperties().put("java.protocol.handler.pkgs", "HTTPClient");
URL url = new URL("https.something.com");
URLConnection connection = url.openConnection();
I added the line System.getProperties because I
was getting a "Malformed URL protocol not supported" error.
I added the 3 jar files:
jcert.jar
jnet.jar
jsse.jar
to my jvm\lib\ext directory
And implemented the policy change as indicated in this thread.
Currently I am getting error messages like this:
error: java.lang.SecurityException
error: at java.lang.System.getProperties(System.java:522)
error: at JavaAgent.NotesMain(JavaAgent.java.21)
Line 21 is the System.getProperties line
which I wrote at the top of this message.
Anyway, I would be very grateful for any further
information how to get a URL call to work in
java with https.
Thank you,
Josephine
java https (~Miriam Prenuvi... 6.Oct.02)
. . RE: java https (~Howard Destumi... 7.Oct.02)
. . . . RE: java https (~Helga Asaboosi... 22.Apr.03)
. . . . . . RE: java https (~Sigmund Minres... 20.May.03)
. . . . . . . . RE: java https (~Nita Desgerobu... 22.May.03)
. . . . . . . . . . RE: java https (~Nita Desgerobu... 27.May.03)
. . . . . . . . . . . . RE: java https (~Emile Brevelut... 20.Nov.03)
Document Options
Search this forum
RSS Feeds